home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
328_01
/
werror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
345b
|
29 lines
/*! werror
* fatal error handler
*/
#include "wscreen.h"
#include "wsys.h"
#include <stdio.h>
void werror ( int errcode, char *msg )
{
#ifndef TEXTONLY
/* if in graphics mode, need to restore CRT
*/
wtextmode ();
#endif
perror ( msg );
exit (errcode);
return; /* werror */
}